package io.renren.modules.PCguanli.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.PCguanli.dao.ViolationRecordsDao;
import io.renren.modules.PCguanli.entity.ViolationRecordsEntity;
import io.renren.modules.PCguanli.service.ViolationRecordsService;


@Service("violationRecordsService")
public class ViolationRecordsServiceImpl extends ServiceImpl<ViolationRecordsDao, ViolationRecordsEntity> implements ViolationRecordsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ViolationRecordsEntity> page = this.page(
                new Query<ViolationRecordsEntity>().getPage(params),
                new QueryWrapper<ViolationRecordsEntity>()
        );

        return new PageUtils(page);
    }

}